<template>
  <div>

    <div class="daohang">
      <router-link to="/" class="zi">首页</router-link>
      <div v-for="item in navData" class="mingcheng">
        <router-link :to="item.path" class="zi">{{ item.title }}</router-link>
      </div>
    </div>
    <div class="conent">
      <router-view></router-view>
    </div>

    <!-- <Event /> -->
  </div>
</template>

<script>
//1.引入组件
// import Event from './views/event/index.vue';
import { navData } from '@/untils/nav';


export default {
  name: 'App',
  components: {
    //2.注册组件
    // HelloWorld,
    // Event,
    // router
  },
  setup() {
    return {
      navData
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
.mingcheng{
  width: 300px;
  border-top: rgb(190, 187, 187) 1px solid;
}
.daohang {
  width: 300px;
  position: absolute;
  left: -60px;
  top: 30px;
  line-height: 50px;
  
  border: rgb(184, 181, 181) 1px solid;
}
.zi{
  text-decoration: none;
  color: black;
}
.conent{
  position: absolute;
  width: 1600px;
  height: 800px;
  left: 200px;
  top: 30px;
  margin: auto;
}
</style>
